package com.jswl.training.springjpa.config;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import java.util.List;
import java.util.Map;

/**
 * 测试读取yml配置数据
 */
@Component
@ConfigurationProperties(prefix = "appconfig")
@Data
public class ConfigYml {

    @Value("${myname}")
    private  String myname;

    private  String appVersion;
    private Boolean isRun;
    private List<String> dictDatas;
    private String[] infos;
    private Map<String,String> datasource;

}
